package cn.edu.bs.web.response;

/**
 * @author bs
 */
public enum APIResultCode {

    SUCCESS(200, "SUCCESS", "成功！"),
    ERROR(500, "SYSTEM_ERROR", "系统异常！"),
    NO_LOGIN(1001, "NO_LOGIN", "请重新登录！"),
    NO_AUTH(1002, "NO_AUTH", "没有权限！");


    private Integer code;
    private String message;
    private String desc;

    APIResultCode(Integer code, String message, String desc) {
        this.code = code;
        this.message = message;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDesc() {
        return desc;
    }
}
